/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package prueba1.seres;

/**
 *
 * @author Eddy
 */
public abstract class Guerrero extends SerVivo {

    protected final String soy;

    protected int blanco;
    
    public int dispara() {
        if (vivo) {
            int disparo = ((int) (Math.random() * 10));
            System.out.println(soy + "Dispara n°" + disparo);
            return disparo;
        } else {
            return 100;
        }

    }

    private int generaBlanco() {
        return ((int) Math.random() * 10);
    }

    public int getblanco() {
        return blanco;
    }

   public abstract void recibeDisparo(int i);
  
    
    public Guerrero(String soy) {
        blanco = generaBlanco();
        this.soy = soy;
    }
}
